<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>Test Case for console object</title>
</head>
<body>

<h1>Console object API: assert</h1>

<p>This test-case is intended for <b>console.assert</b> method.
<br/>
<i>Jan Odvarko, odvarko@gmail.com</i>
</p>

<ol>
<li>Make sure <i>extensions.firebug.filterSystemURLs</i> preference is set to true.
If not, set it and reload the page.</li>
<li>Open Firebug and enable the Console panel.</li>
<li>Click on the <code style="color:green">Execute Test</code> button below.</li>
<li>The console should display something like as following and both logs
should be expandable:
<br/>
<pre>
<span style="color:red">negative</span>
<span style="color:green">    console.assert(false, "negative");</span>
</pre>
<pre>
<span style="color:red">negative with an object</span>
<span style="color:green">[Object { a="b"}, 15, "asdfa"]</span>
<span style="color:green">    console.assert(false, "negative with an object", {a: "b"}, 15, "asdfa");</pre>
</pre>
</li>
</ol>

<button id="testButton" onclick="onExecuteTest()">Execute Test</button>
<br/><br/>

<script type="text/javascript">
function onExecuteTest()
{
    console.assert(true, "positive");
    console.assert(false, "negative");
    console.assert(false, "negative with an object", {a: "b"}, 15, "asdfa");
}
</script>

</body>
</html>
